import Global from "@/Global";
import axios from "axios";
import { getPlatform } from "./phone";
import md5 from '../util/md5'
let url = Global.api_url;

const appID = '123sfexzcx';
const appKey = 'pow309psdjfw';
// let singStr = '';
let backdoorFlag = 0;

function getTokenPromise () {
	return new Promise((resolve, rejects) => {
		// var accessToken = localStorage.getItem("accessToken");
		var accessToken = null;
		if (accessToken != null) {
			resolve(accessToken);
		} else {
			axios.post(url + "/Token/GetAccessToken", { appID: appID, timestamp: timestamp, signStr: singStr }).then((res) => {
				if (res.data.success) {
					localStorage.setItem("accessToken", res.data.respone);
					resolve(res.data);
				}
				else {
					rejects(res.data.msg);
				}
			}).catch((err) => {
				rejects(err);
			});
		}
	});
}

 function get (_url, _params) {
	let timestamp = new Date().getTime();
	let singStr = md5.md5(timestamp.toString() + appID + appKey);
	return new Promise((resolve, rejects) => {
		axios.get(url + _url, {
			params: _params,
			headers: {
				Authorization:'Bearer '+localStorage.getItem('token'),
				platform: getPlatform(),
				appID: appID,
				timestamp: timestamp,
				sign: singStr,
				"content-type": "application/json",
			},
		}).then((res) => {
			if (res.status == 200) {
				resolve(res.data);
			} else {
				rejects("请求失败");
			}
		}).catch((err) => {
			rejects(err);
		});
	})
}

 function post (_url, _data) {
	let timestamp = new Date().getTime();
	let singStr = md5.md5(timestamp.toString() + appID + appKey);
	return new Promise((resolve, rejects) => {
		axios.post(url + _url, _data, {
			headers: {
				Authorization:'Bearer '+localStorage.getItem('token'),
				platform: getPlatform(),
				appID: appID,
				timestamp: timestamp,
				sign: singStr,
				"content-type": "application/json",
			},
		}).then((res) => {
			if (res.status == 200) {
				resolve(res.data);
			} else {
				rejects("请求失败");
			}
		}).catch((err) => {
			rejects(err);
		});
	});

}
//获取滚动banner
export function GetBanner () {
	return get("/Wap/GetCompanyAdvList", {});
}

//即时招聘/通知公告列表
export function GetNewsList (typeID) {
	return get("/News/GetNewsList", { typeID });
}

//即时招聘/通知公告详情
export function GetNewsInfo (newsID) {
	return get("/News/GetNewsInfo", { newsID });
}

//获取现场招聘会列表
export function GetXCZPHList () {
	return get("/Person/GetXCZPHList", {});
}

//获取现场招聘会详细情况
export function GetXCZPHInfo (xczphID) {
	return get("/Person/GetXCZPHInfo", { xczphID });
}

//获取现场招聘会企业详情
export function GetXCZPHCompanyInfo (companyid) {
	return get("/Person/GetXCZPHCompanyInfo", { companyid });
}

//现场招聘会投递简历
export function XCZPHApplyJob (xczphid, companyid, jobid) {
	return post("/Person/XCZPHApplyJob", { xczphid, companyid, jobid });
}

//获取列表匿名八卦列表
export function GetBaGuaList (type) {
	return get("/PersonBaGua/GetList", { type });
}

//匿名八卦点赞
export function BaGuaZan (BGID) {
	return get("/PersonBaGua/Zan", { BGID });
}

//评论八卦
export function AnswerBaGua (postModel) {
	return post("/PersonBaGua/AnswerBaGua", postModel);
}
//删除我的评论
export function DelBaGuaAnswer (infoID) {
	return get("/PersonBaGua/DelBaGuaAnswer", { infoID });
}

//发布八卦
export function PublishBaGua (type, content) {
	return post("/PersonBaGua/PublishBaGua", { type, content });
}

//获取我发布的或者我评论的列表
export function GetBaGuaMyPublishAndAnswerList () {
	return get("/PersonBaGua/GetMyPublishAndAnswerList", {});
}

//删除我发布的八卦
export function DelBaGua (bgid) {
	return get("/PersonBaGua/DelBaGua", { bgid });
}

//搜索职位
export function searchJobs (pageIndex, pageSize = 50, keyword = "", areaCode = "", salarymin = 0, salarymax = 0, eduCode = "", workyearsCode = "", jobtype = "", welfaresValCodes = "", orderByField = 0
) {
	return post("/PersonStation/GetStationPageList", {
		pageIndex,
		pageSize,
		keyword,
		areaCode,
		salarymin,
		salarymax,
		jobtype,
		welfaresValCodes,
		workyearsCode,
		eduCode,
		orderByField,
	});
}

//名企专区
export function GetFamousCompanyList () {
	return get("/FamousCompany/GetFamousCompanyList", {});
}

//查看名企专区 查看数自增
export function FamousCompanyView (companyid) {
	return get("/FamousCompany/FamousCompanyView", { companyid });
}

//直播间列表 type(1直播中 2直播预告  3往期直播 4往期回顾)
export function GetZBJList (type) {
	return get("/ZBJ/GetZBJList", { type });
}
//点击了直播间视频，点击数加1
export function ZBJVideosView (id) {
	return get("/ZBJ/ZBJVideosView", { id });
}
//直播间预约
export function ZBJYY (zbjid) {
	return get("/ZBJ/YY", { zbjid });
}

//查看职位
export function ShowJobInfo (jobid) {
	return get("/Person/ShowJobInfo", { jobid });
}

//相似职位
export function SearchJobLikesList (pageIndex, jobid) {
	return get("/Person/SearchJobLikesList", { pageIndex, jobid });
}

//查看企业
export function ShowCompanyInfo (companyid) {
	return get("/Person/ShowCompanyInfo", { companyid });
}

//查看企业地图
export function ShowCompanyInfoMap (companyid) {
	return get("/Person/ShowCompanyInfoMap", { companyid });
}

//获取基础数据
export function GetSelectData (type) {
	return get("/Common/GetData", { type });
}

//个人用户-密码登录
export function PersonLoginPWD (userName, passWord, isMD5 = false) {
	return post("/PersonAccount/Login", {loginType:0, userName, passWord, isMD5 });
}

//个人用户-短信登录
export function PersonLoginSMS (vcode, mobileNum) {
	return post("/PersonAccount/Login", {loginType:1,vcode,mobileNum});
}

//个人用户-验证短信自动登录
export function PersonCheckSMSAutoLogin (key) {
	return get("/Person/CheckSMSAutoLogin", { key });
}

//个人用户-微信登录
export function PersonLoginWX (wxid) {
	return get("/Person/WXLogin", { wxid });
}

//个人用户验证码登录 获取验证码
export function PersonGetLoginSMSCode (phone) {
	return get("/PersonAccount/SendPhoneCode", { mobileNum:phone });
}

//个人用户-登录后-获取昵称
export function PersonLoginedGetNickName () {
	return get("/PersonLogined/GetNickName", {});
}

//个人用户-登录后-举报职位
export function PersonLoginedReportJob (data) {
	return post("/PersonLogined/ReportJob", data);
}

//个人用户-登录后-投递职位
export function PersonLoginedApplyJob (jobids, jobnames) {
	return post("/PersonLogined/ApplyJob", { jobids, jobnames });
}

//个人用户-登录后-获取企业电话
export function PersonLoginedGetCompanyTel (companyid) {
	return get("/PersonLogined/GetCompanyTel", { companyid });
}

//个人用户-登录后-判断是否收藏该职位
export function PersonCheckIsCollectJob (jobid) {
	return get("/PersonLogined/CheckIsCollectJob", { jobid });
}
//个人用户-登录后-收藏、取消收藏职位 state 1收藏、2取消收藏
export function PersonChangeCollectJobState (jobid, state) {
	return get("/PersonLogined/ChangeCollectJobState", { jobid, state });
}

//个人用户-登录后-获取我的首页信息
export function PersonLoginedGetMyMainInfo () {
	return get("/PersonLogined/GetMyMainInfo", {});
}

//个人用户-登录后-获取浏览职位
export function PersonLoginedGetMyViewJobList () {
	return get("/PersonLogined/GetMyViewJobList", {});
}

//个人用户-登录后-获取收藏的职位
export function PersonLoginedGetMyCollectJobs () {
	return get("/PersonLogined/GetMyCollectJobs", {});
}
//个人用户-登录后-删除收藏的职位
export function PersonLoginedDelMyCollectJobs (id) {
	return get("/PersonLogined/DelMyCollectJobs", { id });
}
//个人用户-登录后-获取谁看过我
export function PersonLoginedGetWhoReadMeList (page) {
	return get("/PersonLogined/GetWhoReadMeList", { page });
}
//个人用户-登录后-删除谁看过我
export function PersonLoginedDelWhoReadMe (id) {
	return get("/PersonLogined/DelWhoReadMe", { id });
}
//个人用户-登录后-企业问答列表
export function PersonLoginedGetMyAskList () {
	return get("/PersonLogined/GetMyAskList", {});
}
//个人用户-登录后-删除企业问答列表
export function PersonLoginedDelMyAskList (id) {
	return get("/PersonLogined/DelMyAskList", { id });
}
//个人用户-登录后-提问
export function PersonLoginedSubAsk (postModel) {
	return post("/PersonLogined/SubAsk", postModel);
}
//个人用户-登录后-获取屏蔽企业列表
export function PersonLoginedGetRefuseCompanyList () {
	return get("/PersonLogined/GetRefuseCompanyList", {});
}
//个人用户-登录后-删除屏蔽企业
export function PersonLoginedDelRefuseCompany (companyid) {
	return get("/PersonLogined/DelRefuseCompany", { companyid });
}
//个人用户-登录后-搜索屏蔽的企业
export function PersonLoginedSearchRefuseCompanyList (kw) {
	return get("/PersonLogined/SearchRefuseCompanyList", { kw });
}
//个人用户-登录后-添加屏蔽企业
export function PersonLoginedAddRefuseCompany (companyid) {
	return get("/PersonLogined/AddRefuseCompany", { companyid });
}
//个人用户-登录后-获取绑定信息
export function PersonLoginedGetBindInfo () {
	return get("/PersonLogined/GetBindInfo", {});
}
//个人用户-登录后-修改密码
export function PersonLoginedChangePWD (oldPass, newPass) {
	return post("/PersonLogined/ChangePWD", { oldPass, newPass });
}
//个人用户-登录后-绑定手机
export function PersonLoginedBindPhone (phone, code) {
	return post("/PersonLogined/BindPhone", { phone, code });
}
//个人用户-登录后-获取职位订阅信息
export function PersonLoginedGetJobSubscribe () {
	return get("/PersonLogined/GetJobSubscribe", {});
}
//个人用户-登录后-获取订阅职位
export function PersonLoginedGetSubscribeJobList () {
	return post("/Wap/GetStationCommendPageList", {pageIndex:1,pageSize:100});
}
//个人用户-登录后-新增、修改职位订阅信息
export function PersonLoginedUpdateJobSubscribe (data) {
	return post("/PersonLogined/UpdateJobSubscribe", data);
}
//个人用户-登录后-简历-主页面信息
export function PersonLoginedGetAppResumeMain () {
	return get("/PersonLogined/GetAppResumeMain", {});
}
//个人用户-登录后-设置简历公开
export function PersonSetResumeStateOn () {
	return get("/PersonResume/SetResumeStateOn", {});
}
//个人用户-登录后-设置简历保密
export function PersonSetResumeStateOff () {
	return get("/PersonResume/SetResumeStateOff", {});
}
//个人用户-登录后-刷新简历
export function PersonRefreshResume () {
	return get("/PersonResume/RefreshResume", {});
}
//个人用户-登录后-获取简历全部信息
export function PersonGetResumeAll () {
	return get("/PersonResume/GetResumeAll", {});
}
//个人用户-登录后-保存、修改基本信息
export function PersonResumeSaveBaseInfo (data) {
	return post("/PersonResume/SaveBaseInfo", data);
}
//个人用户-登录后-保存简历-期望职位
export function PersonResumeSaveJobWanted (data) {
	return post("/PersonResume/SaveJobWanted", data);
}
//个人用户-登录后-保存、修改简历教育信息
export function PersonSaveEduInfo (data) {
	return post("/PersonResume/SaveEduInfo", data);
}
//个人用户-登录后-删除简历教育培训
export function PersonResumeDelEduInfo (eduid) {
	return get("/PersonResume/DelEduInfo", { eduid });
}
//个人用户-登录后-保存、修改工作信息
export function PersonResumeSaveWorkInfo (data) {
	return post("/PersonResume/SaveWorkInfo", data);
}
//个人用户-登录后-删除简历工作经历
export function PersonResumeDelWorkInfo (id) {
	return get("/PersonResume/DelWorkInfo", { id });
}
//个人用户-登录后-保存、修改自我评价
export function PersonSaveSelf (text) {
	return post("/PersonResume/SaveSelf", { text });
}
//个人用户-登录后-保存、修改专业技能
export function PersonResumeSaveSkillInfo (data) {
	return post("/PersonResume/SaveSkillInfo", data);
}
//个人用户-登录后-删除简历专业技能
export function PersonResumeDelSkillInfo (id) {
	return get("/PersonResume/DelSkillInfo", { id });
}
//个人用户-登录后-保存、修改证书
export function PersonResumeSaveLicense (data) {
	return post("/PersonResume/SaveLicense", data);
}
//个人用户-登录后-删除简历证书
export function PersonResumeDelLicenseInfo (id) {
	return get("/PersonResume/DelLicenseInfo", { id });
}
//个人用户-登录后-保存、修改简历-附加信息
export function PersonResumeSaveAddInfo (data) {
	return post("/PersonResume/SaveAddInfo", data);
}
//个人用户-登录后-删除简历附加信息
export function PersonResumeDelAddInfo (id) {
	return get("/PersonResume/DelAddInfo", { id });
}
//个人用户-登录后-投递记录
export function PersonApplyJobList (page) {
	return get("/PersonLogined/ApplyJobList", { page });
}
//个人用户-登录后-删除投递记录
export function PersonDelApplyJob (id) {
	return get("/PersonLogined/DelApplyJob", { id });
}
//个人用户-登录后-获取我收到的面试
export function PersonGetInterwiewList (page) {
	return get("/PersonLogined/GetInterwiewList", { page });
}
//个人用户-登录后-删除收到的面试
export function PersonDelInterwiewList (id) {
	return get("/PersonLogined/DelInterwiewList", { id });
}
//个人用户-登录后-收到的面试-设为已读
export function PersonReadInterwiewList (id) {
	return get("/PersonLogined/ReadInterwiewList", { id });
}
//个人用户-登录后-获取会话列表
export function PersonIMGetIMConversationList () {
	return get("/PersonIM/GetIMConversationList", {});
}
//个人用户-登录后-获取未读的会话数量
export function PersonIMGetIMConversationNoReadCount () {
	return get("/PersonIM/GetIMConversationNoReadCount", {});
}
//个人用户-登录后-获取某会话的所以消息记录
export function PersonIMGetIMMessageList (companyid, cid) {
	return get("/PersonIM/GetIMMessageList", { companyid, cid });
}
//个人用户-登录后-删除会话
export function PersonIMDelIMConversation (cid) {
	return get("/PersonIM/DelIMConversation", { cid });
}
//个人用户-登录后-发送消息
export function PersonIMSendMessage (personid, companyid, msg) {
	return post("/PersonIM/SendMessage", { personid, companyid, msg });
}

//个人用户-简历三部曲-基本信息
export function PersonResumeQuickSaveBaseInfo (postModel) {
	return post("/PersonResumeQuick/SaveBaseInfo", postModel);
}
//个人用户-简历三部曲-教育信息
export function PersonResumeQuickSaveEduInfo (postModel) {
	return post("/PersonResumeQuick/SaveEduInfo", postModel);
}
//个人用户-简历三部曲-工作信息
export function PersonResumeQuickSaveWorkInfo (postModel) {
	return post("/PersonResumeQuick/SaveWorkInfo", postModel);
}

//个人用户-解绑微信
export function PersonUnBindWX () {
	return get("/PersonLogined/UnBindWX", {});
}

//个人用户-绑定微信
export function PersonBindWX (unionID, openID) {
	return post("/PersonLogined/BindWX", { unionID, openID });
}

//登录后-意见反馈
export function LoginedFeedBack (Context, UserType, FeedBackType) {
	return post("/CommonLogined/FeedBack", { Context, UserType, FeedBackType });
}

//-------企业部分--------
//登录
export function CompanyLogin (userName, userPass) {
	return post("/CompanyUser/Login", { userName, userPass, isMD5: false });
}
//企业获取验证码
export function CompanyGetSMSYZM (phone, type) {
	return post("/CompanyUser/GetSMSYZM", { phone, type });
}
//企业注册
export function CompanyReg (postData) {
	return post("/CompanyUser/Reg", postData);
}
//获取公司名称
export function CompanyGetCompanyName () {
	return get("/CompanyLogined/GetCompanyName", {});
}
//获取我的信息
export function CompanyGetMyMainInfo () {
	return get("/CompanyLogined/GetMyMainInfo", {});
}
//获取会员信息
export function CompanyGetMemberInfo () {
	return get("/CompanyLogined/GetMemberInfo", {});
}
//获取专属客服
export function CompanyGetMyKF (companyid = "") {
	return get("/CompanyUser/GetMyKF", { companyid });
}
//意见反馈
export function CompanyFeedBack (postData) {
	return post("/CompanyLogined/FeedBack", postData);
}
//获取绑定的手机号
export function CompanyGetBindPhone () {
	return get("/CompanyLogined/GetBindPhone", {});
}
//修改密码
export function CompanyChangePWD (postData) {
	return post("/CompanyLogined/ChangePWD", postData);
}
//绑定手机
export function CompanyBindPhone (postData) {
	return post("/CompanyLogined/BindPhone", postData);
}
//获取问答列表
export function CompanyGetAskList (postData) {
	return get("/CompanyLogined/GetAskList", postData);
}
//删除问答
export function CompanyDelAsk (id) {
	return get("/CompanyLogined/DelAsk", { id });
}
// 修改问答
export function CompanyUpdateAsk (postData) {
	return post("/CompanyLogined/UpdateAsk", postData);
}
// 保存、修改企业信息
export function CompanySaveCompanyInfo (postData) {
	return post("/CompanyLogined/SaveCompanyInfo", postData);
}
//获取企业信息
export function CompanyGetCompanyInfo () {
	return get("/CompanyLogined/GetCompanyInfo", {});
}
//获取收藏简历
export function CompanyResumeGetCollect (pageIndex) {
	return get("/CompanyResume/GetCollect", { pageIndex });
}
//删除收藏简历
export function CompanyResumeDelCollect (id) {
	return get("/CompanyResume/DelCollect", { id });
}
//是否收藏该简历
export function CompanyResumeIsCollectResume (resumeid) {
	return get("/CompanyResume/IsCollectResume", { resumeid });
}
//收藏、取消收藏简历
export function CompanyResumeCollectResume (resumeid, collect) {
	return get("/CompanyResume/CollectResume", { resumeid, collect });
}
//谁看过我
export function CompanyResumeGetWhoReadMe (pageIndex) {
	return get("/CompanyResume/GetWhoReadMe", { pageIndex });
}
//获取面试列表
export function CompanyResumeGetInterViewList (pageIndex, isToday, isJoin) {
	return get("/CompanyResume/GetInterViewList", { pageIndex, isToday, isJoin });
}
//获取收件箱简历
export function CompanyResumeGetInboxList (
	pageIndex,
	state,
	filter_readState = "",
	filter_resultState = "",
	filter_jobid = "",
	filter_edu = "",
	filter_workyears = "",
	filter_sex = ""
) {
	return get("/CompanyResume/GetInboxList", {
		pageIndex,
		state,
		filter_readState,
		filter_resultState,
		filter_jobid,
		filter_edu,
		filter_workyears,
		filter_sex,
	});
}
//发送面试评语
export function CompanyResumeSaveInterviewPY (pid, resumeid, content) {
	return post("/CompanyResume/SaveInterviewPY", { pid, resumeid, content });
}
//匹配简历
export function CompanyResumeRecommendResume () {
	return get("/CompanyResume/RecommendResume", {});
}
//获取的简历（消费）
export function CompanyResumeGetPayList (pageIndex) {
	return get("/CompanyResume/GetPayList", { pageIndex });
}
//操作简历（删除、淘汰、加入黑名单）
export function CompanyResumeOperateResumeState (ids, type) {
	return get("/CompanyResume/OperateResumeState", { ids, type });
}
//搜索简历
export function CompanyResumeSearchResume (
	pageIndex,
	filter_edu = "",
	filter_workyears = "",
	filter_area = "",
	filter_sex = "",
	filter_days = "",
	filter_sort = "",
	filter_kw = "",
	filter_kwType = ""
) {
	return get("/CompanyResume/SearchResume", {
		pageIndex,
		filter_edu,
		filter_workyears,
		filter_area,
		filter_sex,
		filter_days,
		filter_sort,
		filter_kw,
		filter_kwType,
	});
}
//查看简历
export function CompanyResumeShowRsumeInfo (resumeid, rowid) {
	return get("/CompanyResume/ShowRsumeInfo", { resumeid, rowid });
}
//添加备注
export function CompanyResumeAddResumeRemark (postModel) {
	return post("/CompanyResume/AddResumeRemark", postModel);
}
//获取备注
export function CompanyResumeGetResumeRemark (resumeid) {
	return get("/CompanyResume/GetResumeRemark", { resumeid });
}
//简历反馈
export function CompanyResumeSubResumeApplyResult (postModel) {
	return post("/CompanyResume/SubResumeApplyResult", postModel);
}
//获取面试通知投递的职位
export function CompanyResumeGetInterviewJobid (rowid) {
	return get("/CompanyResume/GetInterviewJobid", { rowid });
}
//发送面试通知
export function CompanyResumeSendInterviewNotice (postModel) {
	return post("/CompanyResume/SendInterviewNotice", postModel);
}
//获取联系方式
export function CompanyResumeGetLinks (resumeid) {
	return get("/CompanyResume/GetLinks", { resumeid });
}

//获取我的职位
export function CompanyJobGetMyJobs (page, state) {
	return get("/CompanyJobs/GetMyJobs", { page, state });
}
//发布、修改职位
export function CompanyJobSaveJobs (postModel) {
	return post("/CompanyJobs/SaveJobs", postModel);
}
//操作职位
export function CompanyJobOperatJobs (postModel) {
	return post("/CompanyJobs/OperatJobs", postModel);
}
//获取职位详情
export function CompanyJobGetJobInfo (jobid) {
	return get("/CompanyJobs/GetJobInfo", { jobid });
}
//获取人才点
export function CompanyServiceGetMoney () {
	return get("/CompanyService/GetMoney", {});
}
//人才点消费记录
export function CompanyServiceGetMoneyChangeLogList (page, state) {
	return get("/CompanyService/GetMoneyChangeLogList", { page, state });
}
//购买职位
export function CompanyServiceBuyJob (postModel) {
	return post("/CompanyService/BuyJob", postModel);
}
//购买简历
export function CompanyServiceBuyResume (postModel) {
	return post("/CompanyService/BuyResume", postModel);
}
//购买短信
export function CompanyServiceBuySms (postModel) {
	return post("/CompanyService/BuySms", postModel);
}
//判断该企业名企专区能否购买 和 购买期限
export function CompanyServiceGetBuyFamousDateAndUsing () {
	return get("/CompanyService/GetBuyFamousDateAndUsing", {});
}
//购买名企专区
export function CompanyServiceBuyFamous (postModel) {
	return post("/CompanyService/BuyFamous", postModel);
}
//获取我购买的服务
export function CompanyServiceGetMyServiceList () {
	return get("/CompanyService/GetMyServiceList", {});
}
//获取职位固定可买时间
export function CompanyServiceGetJobTopDates () {
	return get("/CompanyService/GetJobTopDates", {});
}
//获取职位置顶该职位置顶的日期
export function CompanyServiceGetJobTopForJobSels (jobid) {
	return get("/CompanyService/GetJobTopForJobSels", { jobid });
}
//购买职位置顶
export function CompanyServiceBuyJobTop (postModel) {
	return post("/CompanyService/BuyJobTop", postModel);
}
//修改职位固定订单
export function CompanyServiceChangeJobTopOrder (postModel) {
	return post("/CompanyService/ChangeJobTopOrder", postModel);
}
//获取未读的会话数量
export function CompanyIMGetIMConversationNoReadCount () {
	return get("/CompanyIM/GetIMConversationNoReadCount", {});
}
//获取会话列表
export function CompanyIMGetIMConversationList () {
	return get("/CompanyIM/GetIMConversationList", {});
}
//删除会话
export function CompanyIMDelIMConversation (cid) {
	return get("/CompanyIM/DelIMConversation", { cid });
}
//获取某会话的所以消息记录
export function CompanyIMGetIMMessageList (personid, cid) {
	return get("/CompanyIM/GetIMMessageList", { personid, cid });
}
//发送消息
export function CompanyIMSendMessage (postModel) {
	return post("/CompanyIM/SendMessage", postModel);
}

//举报聊天
export function IMReport (postModel) {
	return post("/CommonLogined/IMReport", postModel);
}
